package com.zmn.oms.business.interfaces.graborder;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.dto.graborder.GrabOrderDTO;
import com.zmn.oms.model.dto.graborder.GrabWorkQuery;
import com.zmn.oms.model.mongo.graborder.GrabOrder;
import com.zmn.oms.model.mongo.graborder.GrabOrderQuery;

import java.util.List;

/**
 * 类描述：抢单
 *
 * @author liuying
 * @date 2021/07/13 11:14
 */
public interface GrabOrderBService {

    /**
     * 列表查询
     *
     * @param grabOrderQuery
     * @return
     */
    List<GrabOrder> listGrabOrderByQuery(GrabOrderQuery grabOrderQuery);

    /**
     * 保存抢单
     */
    void saveGrabOrderByOrderId(GrabOrder grabOrder) throws OmsBaseException;

    /**
     * 更新抢单信息
     */
    void updateGrabOrderByOrderId(GrabOrder grabOrder);
}
